package com.example.dessert.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.dessert.dao.ProductCategoryMapper;
import com.example.dessert.entity.ProductCategory;
import com.example.dessert.service.ProductCategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName: ProductCategoryServiceImpl
 * @Description:
 * @Author
 * @Date 2022/1/13
 * @Version 1.0
 */
@Service
public class ProductCategoryServiceImpl implements ProductCategoryService  {

    @Resource
    private ProductCategoryMapper productCategoryMapper;

    @Override
    public ProductCategory queryProductCategoryBuyId(Long id) {

        QueryWrapper<ProductCategory> wrapper = new QueryWrapper<>();
        wrapper.eq("id",id);
        return productCategoryMapper.selectOne(wrapper);

    }
}
